package com.yifei.model.dto.auth;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Set;

/**
 * @Description: 用户权限信息
 * @Author: yiFei
 * @date: 2023/9/17 21:25
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UserAuthInfo {

    private Long userId;
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String username;
    /**
     * 角色集合
     */
    @ApiModelProperty(value = "角色集合")
    private Set<String> roles;
    /**
     * 权限集合
     */
    @ApiModelProperty(value = "权限集合")
    private Set<String> perms;
    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    private String nickname;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 部门ID
     */
    @ApiModelProperty(value = "部门ID")
    private Integer deptId;

    /**
     * 用户状态((1:正常;0:禁用))
     */
    @ApiModelProperty(value = "用户状态((1:正常;0:禁用))")
    private Integer status;
}
